/** 
 * 不可能取得眼,这局就不可能赢 
 **/

import {callback_board} from "/go/common-utils.js"

export function is_impossible_to_get_a_point(ns,board_state) 
{
  // 被吃到没有, 重来更好
  let number_of_opponent = 0;
  let number_of_black = 0;
  callback_board(board_state,(x,y,value)=>{
    if('O' == value)
    {
      ++number_of_opponent;
    }
    else if('X' == value )
    {
      ++number_of_black;
    }
  });
  if(1>=number_of_black)
  {
    if(7<=number_of_opponent)
    {
      return true;
    }
  }
  return false;
}